package nero.yncc.com.createart.bean;

import android.media.Image;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import nero.yncc.com.createart.utils.ImageUtils;

/**
 * Created by nero on 17-6-21.
 */

public class GodBean implements Serializable {


    int num=0;
    Goods goods;
    String spec_goods_price;
    ArrayList<ImageUrl>gallery;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public static  class ImageUrl{
        String image_url;

        public String getImage_url() {
            return image_url;
        }

        public void setImage_url(String image_url) {
            this.image_url = image_url;
        }
    }
    public static class Goods{

        //   "goods_id": 104,
//           "cat_id": 123,
//           "extend_cat_id": 0,
//           "goods_sn": "TP0000104",
//           "goods_name": "小米手机5,十余项黑科技，很轻狠快",
//           "click_count": 312,
//           "brand_id": 17,
//           "store_count": 898,
//           "comment_count": 6,
//           "weight": 900,
//           "market_price": "2099.00",
//           "shop_price": "1999.00",
//           "cost_price": "0.00",
//           "keywords": "",
//           "goods_remark": "骁龙820处理器 / 最大可选4GB内存、128GB闪存4轴防抖相机 / 3D陶瓷机身 / 3D玻璃机身",
//           "goods_content": "&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;/Public/upload/goods/2016/03-12/56e3eb8e57a37.jpg&quot; title=&quot;g-11.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;/Public/upload//goods/2016/03-12/56e3e6e13859a.jpg&quot; style=&quot;&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;/Public/upload//goods/2016/03-12/56e3e6dae9b86.jpg&quot; style=&quot;&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;/Public/upload//goods/2016/03-12/56e3e6ce7efcb.jpg&quot; style=&quot;&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;",
//           "original_img": "http://lmrz.ynthgy.com/Public/upload/goods/2016/03-12/56e3eb73912ff.jpg",
//           "is_real": 1,
//           "is_on_sale": 1,
//           "is_free_shipping": 0,
//           "on_time": 1482807952,
//           "sort": 50,
//           "is_recommend": 1,
//           "is_new": 1,
//           "is_hot": 1,
//           "last_update": 0,
//           "goods_type": 4,
//           "spec_type": 4,
//           "give_integral": 0,
//           "exchange_integral": 0,
//           "suppliers_id": 0,
//           "sales_sum": 0,
//           "prom_type": 0,
//           "prom_id": 0,
//           "commission": "0.00",
//           "spu": "",
//           "sku": "",
//           "shipping_area_ids": ""

        //     "name":"颜色",
//             "spec_id":35,
//             "list":[
//    {
//        "spec_name":"颜色",
//            "item_id":153,
//            "spec_id":35,
//            "item":"红色",
//            "src":""
//    },
        String taozhuang;
        ArrayList<SpecAttr> goods_spec_list;
        ArrayList<Goods_attr_list> goods_attr_list;
        String goods_id, cat_id, extend_cat_id, goods_sn, goods_name, click_count, brand_id, store_count, comment_count,
                weight, market_price, cost_price, keywords, goods_remark, goods_content, original_img, is_real, shop_price,
                is_on_sale, is_free_shipping, on_time, sort, is_recommend, is_new, is_hot, last_update,
                goods_type, spec_type, give_integral, exchange_integral, suppliers_id, sales_sum, prom_type, prom_id, commission,
                spu, sku, shipping_area_ids, collectnum, icollect,spec_name;

        public String getTaozhuang() {
            return taozhuang;
        }

        public void setTaozhuang(String taozhuang) {
            this.taozhuang = taozhuang;
        }

        public String getSpec_name() {
            return spec_name;
        }

        public void setSpec_name(String spec_name) {
            this.spec_name = spec_name;
        }

        public ArrayList<SpecAttr> getGoods_spec_list() {
            return goods_spec_list;
        }

        public void setGoods_spec_list(ArrayList<SpecAttr> goods_spec_list) {
            this.goods_spec_list = goods_spec_list;
        }

        public ArrayList<Goods_attr_list> getGoods_attr_list() {
            return goods_attr_list;
        }

        public void setGoods_attr_list(ArrayList<Goods_attr_list> goods_attr_list) {
            this.goods_attr_list = goods_attr_list;
        }

        public String getCollectnum() {
            return collectnum;
        }

        public void setCollectnum(String collectnum) {
            this.collectnum = collectnum;
        }

        public String getIcollect() {
            return icollect;
        }

        public void setIcollect(String icollect) {
            this.icollect = icollect;
        }

        int num; //现在选中的数量

        public int getNum() {
            return num;
        }

        public void setNum(int num) {
            this.num = num;
        }

        boolean isChoose;

        public boolean isChoose() {
            return isChoose;
        }

        public void setChoose(boolean choose) {
            isChoose = choose;
        }

        public String getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(String goods_id) {
            this.goods_id = goods_id;
        }

        public String getCat_id() {
            return cat_id;
        }

        public void setCat_id(String cat_id) {
            this.cat_id = cat_id;
        }

        public String getExtend_cat_id() {
            return extend_cat_id;
        }

        public void setExtend_cat_id(String extend_cat_id) {
            this.extend_cat_id = extend_cat_id;
        }

        public String getGoods_sn() {
            return goods_sn;
        }

        public void setGoods_sn(String goods_sn) {
            this.goods_sn = goods_sn;
        }

        public String getGoods_name() {
            return goods_name;
        }

        public void setGoods_name(String goods_name) {
            this.goods_name = goods_name;
        }

        public String getClick_count() {
            return click_count;
        }

        public void setClick_count(String click_count) {
            this.click_count = click_count;
        }

        public String getBrand_id() {
            return brand_id;
        }

        public void setBrand_id(String brand_id) {
            this.brand_id = brand_id;
        }

        public String getStore_count() {
            return store_count;
        }

        public void setStore_count(String store_count) {
            this.store_count = store_count;
        }

        public String getComment_count() {
            return comment_count;
        }

        public void setComment_count(String comment_count) {
            this.comment_count = comment_count;
        }

        public String getWeight() {
            return weight;
        }

        public void setWeight(String weight) {
            this.weight = weight;
        }

        public String getMarket_price() {
            return market_price;
        }

        public void setMarket_price(String market_price) {
            this.market_price = market_price;
        }

        public String getShop_price() {
            return shop_price;
        }

        public void setShop_price(String shop_price) {
            this.shop_price = shop_price;
        }

        public String getCost_price() {
            return cost_price;
        }

        public void setCost_price(String cost_price) {
            this.cost_price = cost_price;
        }

        public String getKeywords() {
            return keywords;
        }

        public void setKeywords(String keywords) {
            this.keywords = keywords;
        }

        public String getGoods_remark() {
            return goods_remark;
        }

        public void setGoods_remark(String goods_remark) {
            this.goods_remark = goods_remark;
        }

        public String getGoods_content() {
            return goods_content;
        }

        public void setGoods_content(String goods_content) {
            this.goods_content = goods_content;
        }

        public String getOriginal_img() {
            return original_img;
        }

        public void setOriginal_img(String original_img) {
            this.original_img = original_img;
        }

        public String getIs_real() {
            return is_real;
        }

        public void setIs_real(String is_real) {
            this.is_real = is_real;
        }

        public String getIs_on_sale() {
            return is_on_sale;
        }

        public void setIs_on_sale(String is_on_sale) {
            this.is_on_sale = is_on_sale;
        }

        public String getIs_free_shipping() {
            return is_free_shipping;
        }

        public void setIs_free_shipping(String is_free_shipping) {
            this.is_free_shipping = is_free_shipping;
        }

        public String getOn_time() {
            return on_time;
        }

        public void setOn_time(String on_time) {
            this.on_time = on_time;
        }

        public String getSort() {
            return sort;
        }

        public void setSort(String sort) {
            this.sort = sort;
        }

        public String getIs_recommend() {
            return is_recommend;
        }

        public void setIs_recommend(String is_recommend) {
            this.is_recommend = is_recommend;
        }

        public String getIs_new() {
            return is_new;
        }

        public void setIs_new(String is_new) {
            this.is_new = is_new;
        }

        public String getIs_hot() {
            return is_hot;
        }

        public void setIs_hot(String is_hot) {
            this.is_hot = is_hot;
        }

        public String getLast_update() {
            return last_update;
        }

        public void setLast_update(String last_update) {
            this.last_update = last_update;
        }

        public String getGoods_type() {
            return goods_type;
        }

        public void setGoods_type(String goods_type) {
            this.goods_type = goods_type;
        }

        public String getSpec_type() {
            return spec_type;
        }

        public void setSpec_type(String spec_type) {
            this.spec_type = spec_type;
        }

        public String getGive_integral() {
            return give_integral;
        }

        public void setGive_integral(String give_integral) {
            this.give_integral = give_integral;
        }

        public String getExchange_integral() {
            return exchange_integral;
        }

        public void setExchange_integral(String exchange_integral) {
            this.exchange_integral = exchange_integral;
        }

        public String getSuppliers_id() {
            return suppliers_id;
        }

        public void setSuppliers_id(String suppliers_id) {
            this.suppliers_id = suppliers_id;
        }

        public String getSales_sum() {
            return sales_sum;
        }

        public void setSales_sum(String sales_sum) {
            this.sales_sum = sales_sum;
        }

        public String getProm_type() {
            return prom_type;
        }

        public void setProm_type(String prom_type) {
            this.prom_type = prom_type;
        }

        public String getProm_id() {
            return prom_id;
        }

        public void setProm_id(String prom_id) {
            this.prom_id = prom_id;
        }

        public String getCommission() {
            return commission;
        }

        public void setCommission(String commission) {
            this.commission = commission;
        }

        public String getSpu() {
            return spu;
        }

        public void setSpu(String spu) {
            this.spu = spu;
        }

        public String getSku() {
            return sku;
        }

        public void setSku(String sku) {
            this.sku = sku;
        }

        public String getShipping_area_ids() {
            return shipping_area_ids;
        }

        public void setShipping_area_ids(String shipping_area_ids) {
            this.shipping_area_ids = shipping_area_ids;
        }
    }
    public static class  SpecAttrIn{
         //"spec_name":"颜色",
//            "item_id":153,
//            "spec_id":35,
//            "item":"红色",
//            "src":""
        boolean isChoose;
        String spec_name,item_id,spec_id,item,src;

        public boolean isChoose() {
            return isChoose;
        }

        public void setChoose(boolean choose) {
            isChoose = choose;
        }

        public String getSpec_name() {
            return spec_name;
        }

        public void setSpec_name(String spec_name) {
            this.spec_name = spec_name;
        }

        public String getItem_id() {
            return item_id;
        }

        public void setItem_id(String item_id) {
            this.item_id = item_id;
        }

        public String getSpec_id() {
            return spec_id;
        }

        public void setSpec_id(String spec_id) {
            this.spec_id = spec_id;
        }

        public String getItem() {
            return item;
        }

        public void setItem(String item) {
            this.item = item;
        }

        public String getSrc() {
            return src;
        }

        public void setSrc(String src) {
            this.src = src;
        }
    }
    public static class SpecAttr{
        String name,spec_id;
        ArrayList<SpecAttrIn> list;
        String chooseAttrId;

        public String getChooseAttrId() {
            return chooseAttrId;
        }

        public void setChooseAttrId(String chooseAttrId) {
            this.chooseAttrId = chooseAttrId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSpec_id() {
            return spec_id;
        }

        public void setSpec_id(String spec_id) {
            this.spec_id = spec_id;
        }

        public ArrayList<SpecAttrIn> getList() {
            return list;
        }

        public void setList(ArrayList<SpecAttrIn> list) {
            this.list = list;
        }
    }
    public static class Goods_attr_list {
        String goods_attr_id, goods_id, attr_id, attr_value, attr_price, attr_name;

        public String getGoods_attr_id() {
            return goods_attr_id;
        }

        public void setGoods_attr_id(String goods_attr_id) {
            this.goods_attr_id = goods_attr_id;
        }

        public String getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(String goods_id) {
            this.goods_id = goods_id;
        }

        public String getAttr_id() {
            return attr_id;
        }

        public void setAttr_id(String attr_id) {
            this.attr_id = attr_id;
        }

        public String getAttr_value() {
            return attr_value;
        }

        public void setAttr_value(String attr_value) {
            this.attr_value = attr_value;
        }

        public String getAttr_price() {
            return attr_price;
        }

        public void setAttr_price(String attr_price) {
            this.attr_price = attr_price;
        }

        public String getAttr_name() {
            return attr_name;
        }

        public void setAttr_name(String attr_name) {
            this.attr_name = attr_name;
        }
    }


    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public String getSpec_goods_price() {
        return spec_goods_price;
    }

    public void setSpec_goods_price(String spec_goods_price) {
        this.spec_goods_price = spec_goods_price;
    }

    public ArrayList<ImageUrl> getGallery() {
        return gallery;
    }

    public void setGallery(ArrayList<ImageUrl> gallery) {
        this.gallery = gallery;
    }
}
